package com.ms.log.factory;

import com.ms.log.logger.AbstractLogger;
import com.ms.log.logger.Logger;

/**
 * @author zdh
 */
public class StaticProxyLoggerFactory {

    private static LoggerFactory loggerFactory = new DefaultLoggerFactory();

    public static LoggerFactory getLoggerFactory(){
        return loggerFactory;
    }

    public static Logger getLogger(Class<?> clazz){
        return getLoggerFactory().getLogger(clazz);
    }

    public static Logger getLogger(String name){
        return getLoggerFactory().getLogger(name);
    }

    public static Logger getLogger(){
        return getLoggerFactory().getLogger(AbstractLogger.LittleOrmLoggerName);
    }
}
